package com.yjd.bi.user.service;

import java.util.List;
import java.util.Map;

import com.yjd.comm.base.service.IBaseService;
import com.yjd.bi.user.model.InvestRateDaysModel;

/**
 * <b>description</b>：用户投资项目日留存率业务接口<br>
 * <b>time</b>：2016-04-27 17:12:31 <br>
 * <b>author</b>： renbangjie renbangjie@126.com
 */
public interface IInvestRateDaysService extends IBaseService {
	/**
	 * 插入
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public InvestRateDaysModel insert(InvestRateDaysModel model)
			throws Exception;

	/**
	 * 更新,大于等于1表示成功，其他失败
	 * 
	 * @param model
	 * @return
	 * @throws Exception
	 */
	public int update(InvestRateDaysModel model) throws Exception;

	/**
	 * 根据id删除,大于等于1表示成功，其他失败
	 * 
	 * @param statistics_date
	 * @return
	 * @throws Exception
	 */
	public int delete(long statistics_date) throws Exception;

	/**
	 * 投资留存率
	 * 
	 * @param skip
	 * @return
	 * @throws Exception
	 *             Map<Integer,List<Integer>>
	 */
	public Map<Integer, List<Integer>> getInvestDaysRate(Integer skip)
			throws Exception;
	
	
	/**
	 * 投资留存率
	 * 
	 * @param skip
	 * @return
	 * @throws Exception
	 *             Map<Integer,List<Integer>>
	 */
	public List<List<Integer>> getInvestDaysRate(Integer skip,Long condition)
			throws Exception;
}
